<?php
class IndexController extends BaseController
{
    /**
     * 首页
     **/
    public function indexAction()
    {
        $info = [
            'total_orders'        => 100, //订单总数
            'quantity_completion' => 20, // 完成数
            'close_rate'          => '20%', //成交率
            'total'               => '1390', //总金额
            'completion_amount'   => 1590, //完成金额
        ];
        $this->getView()->assign('info', $info);
        $this->getView()->assign('device', isMobile());
    }

}
